namespace Forging2
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel.DataAnnotations;
    using System.ComponentModel.DataAnnotations.Schema;
    using System.Data.Entity.Spatial;

    public partial class bas_plcaddress_zy
    {
        [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
        public int ID { get; set; }

        [Key]
        [StringLength(50)]
        public string GID { get; set; }

        [Required]
        [StringLength(50)]
        public string EQUIPMENT_GID { get; set; }

        public int ADDR_ID { get; set; }

        [Required]
        [StringLength(100)]
        public string DB_NODEID { get; set; }

        [StringLength(50)]
        public string DB_CODE { get; set; }

        [StringLength(50)]
        public string DB_NAME { get; set; }

        public int DB_TYPE { get; set; }

        public int? DB_PRECISION { get; set; }

        public int DB_VALUE { get; set; }

        public int? IS_CONTROL { get; set; }

        public int? IS_DELETE { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime? CREATE_DATE { get; set; }

        [Column(TypeName = "datetime2")]
        public DateTime? MODIFY_DATE { get; set; }

        public int STATUS { get; set; }

        [StringLength(128)]
        public string DB_MONITOR { get; set; }

        public virtual bas_equipment_zy bas_equipment_zy { get; set; }
    }
}
